<script LANGUAGE="JavaScript">
function display(calque)
{
document.getElementById(calque).style.display=document.getElementById(calque).style.display=="none"?"block":"none";
}
</SCRIPT>
<div class="Block_right">
 <div class="Block_right_top">
  CONNEXION
 </div>
 <div class="Block_right_content">
 <?php if (!isset($_SESSION['id'])) { ?>
  <form id="formu_inscr" action="<?php echo ABS_PATH.ROOT; ?>?page=Accueil&fct=login" method="post">
   <label for="login">Identifiant</label><br />
   <input type="text" name="login"><br />
   <label for="pass">Mot de passe</label><br />
   <input type="password" name="pass" class="login_form"><br /><br />
   <select name="listetypeAgent">
	<option value="Client">Client</option>
    <option value="Transporteur">Transporteur</option>
    <option value="Entrepot">Gerant entrepot</option>
	<option value="Usine">Usine</option>
	<option value="Admin">Admin</option>
	<option value="Fmp">Fmp</option>
   </select><br /><br />
   <input type="submit" value="Se connecter!">
  </form>
 <?php } else { ?>
  <a href="<?php echo ABS_PATH.ROOT; ?>?page=Accueil&fct=logout">Logout</a>
 <?php } ?>
 </div>
 	<p style="font-size: 13px; width:180px; margin-left:20px; text-align:center;">
 <?php if (isset($_GET['page']))
 {
 	$path = "/Content/".$_GET['page'];
	$xml = simplexml_load_file('test.xml');
 	$result = $xml->xpath($path);
 	if (!empty($result))
 	{ ?>
 	 <div class="Block_right_top">
  		<input type="image" src="_gfx/icons/help2.png" onclick="display('calque');" />
 	</div>
 	<div id="calque" style="display:none; font-size: 11px; width:180px; margin-left:20px; text-align:left;"><?php echo nl2br($result[0]); ?></div> 
 	<?php }
 }?>
	</p>
</div>